<layout name='layout' />

<div class="admin-main">

	<blockquote class="layui-elem-quote">
		<a href="<{:U('Group/add')}>" class="layui-btn layui-btn-small">
			<i class="layui-icon">&#xe608;</i> 添加
		</a>
		<button class="layui-btn layui-btn-small layui-btn-danger" id="delBtn">
			<i class="fa fa-close"></i> 删除
		</button>
	</blockquote>

	<fieldset class="layui-elem-field">
		<legend>用户组</legend>
		<div class="layui-field-box">
			<form id="ajaxForm" method="post" action="<{:U('Group/del')}>">
			<table class="site-table table-hover">
				<thead>
					<tr>
						<th><input type="checkbox" id="selected-all"></th>								
						<th>组名</th>
						<th>描述</th>
						<th>状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<volist name="list" id="vo">
					<tr>
						<td><input type="checkbox" name="selectedids[]" value="<{$vo.id}>"></td>
						<td><{$vo.name}></td>
						<td><{$vo.remark}></td>
						<td><if condition="$vo.status eq 0"><font color="#FF0000">关闭</font><else />开启</if></td>	  
						<td>
							<a href="<{:U('Group/edit' , array('id'=>$vo['id']))}>" class="layui-btn layui-btn-mini">编辑</a>
							<a href="<{:U('Group/access',array('id'=>$vo['id']))}>" class="layui-btn layui-btn-mini">权限设置</a>
						</td>
					</tr>
					</volist>				
				</tbody>
			</table>
			</form>
		</div>
	</fieldset>
</div>